package com.handsome.适配器模式.类适配器;

/**
 *
 * @author niechun
 * @date 2023/2/1 21:05
 */
public class Phone {

    public void charge(Voltage5 voltage5){
        if (voltage5.output5()==5){
            System.out.println("开始充电");
        }else {
            System.out.println("电压过高,充电失败");
        }

    }
}
